package main

import (
	"code.google.com/p/go.net/websocket"
	"jklog"
	"list"
	"map"
	"net/http"
	"os"
	"socket"
)

func main() {
	l := jklog.L()
	l.Noneln("============parse addr=============")
	if len(os.Args) != 2 {
		l.Fatalf("Usage: %s ip-addr/host\n", os.Args[0])
	}
	// socket.PrintAllSenderHeader(socket.GetResponse(os.Args[1]))
	l.Noneln("next")
	// socket.PrintAllHeader(socket.GetResponse(os.Args[1]))
	//str := socket.GetResponseBody(os.Args[1])
	//fmt.Println(str)
	//str, _ := socket.GetAddrsHosts(os.Args[1])

	return

	l.Noneln("start to list")
	list.MyList()
	mymap.MyMap()

	l.Noneln("========= test web socket ========")
	http.Handle("/", websocket.Handler(socket.WebSocket))
	if err := http.ListenAndServe(":1234", nil); err != nil {
		l.Fatalln("ListAndServe: ", err)
	}
}
